# 游戏界面尺寸设置
# 游戏窗口的总大小(宽度和高度)
SIZE = 200
GAME_SIZE = 200
# 网格的行列数(4x4)
GRID_LEN = 4
# 网格之间的内边距
GRID_PADDING = 6

# 颜色配置
# 游戏背景颜色(深棕色)
BACKGROUND_COLOR_GAME = "#92877d"
# 空白单元格颜色(浅棕色)
BACKGROUND_COLOR_CELL_EMPTY = "#9e948a"

# 不同数字对应的单元格背景颜色
BACKGROUND_COLOR_DICT = {
    2: "#eee4da",
    4: "#ede0c8",
    8: "#f2b179",
    16: "#f59563",
    32: "#f67c5f",
    64: "#f65e3b",
    128: "#edcf72",
    256: "#edcc61",
    512: "#edc850",
    1024: "#edc53f",
    2048: "#edc22e",
    4096: "#eee4da",
    8192: "#edc22e",
    16384: "#f2b179",
    32768: "#f59563",
    65536: "#f67c5f",
}

# 不同数字对应的文字颜色,暂时调成这样
CELL_COLOR_DICT = {
    2: "#776e65",
    4: "#776e65",
    8: "#f9f6f2",
    16: "#f9f6f2",
    32: "#f9f6f2",
    64: "#f9f6f2",
    128: "#f9f6f2",
    256: "#f9f6f2",
    512: "#f9f6f2",
    1024: "#f9f6f2",
    2048: "#f9f6f2",
    4096: "#776e65",
    8192: "#f9f6f2",
    16384: "#776e65",
    32768: "#776e65",
    65536: "#f9f6f2",
}

# 字体设置
FONT = ("Verdana", 40, "bold")  # 使用Verdana粗体40号字

# 按键绑定设置
KEY_QUIT = "Escape"  # 退出键(ESC)
KEY_BACK = "b"  # 返回键(暂未使用)

# 方向键-主设置(箭头键)
KEY_UP = "Up"
KEY_DOWN = "Down"
KEY_LEFT = "Left"
KEY_RIGHT = "Right"

# 方向键-替代设置1(WASD)
KEY_UP_ALT1 = "w"
KEY_DOWN_ALT1 = "s"
KEY_LEFT_ALT1 = "a"
KEY_RIGHT_ALT1 = "d"

# 方向键-替代设置2(IJKL)
KEY_UP_ALT2 = "i"
KEY_DOWN_ALT2 = "k"
KEY_LEFT_ALT2 = "j"
KEY_RIGHT_ALT2 = "l"
